/**
 * Created by wangpeng on 2017/12/23.
 */
'use strict';
module.exports = app => {
  const mongoose = app.mongoose;
  const Schema = mongoose.Schema;
  const DeliverySchema = new Schema({
    color: String,
    id: Number,
    is_solid: Boolean,
    text: String,
  });

  DeliverySchema.index({ id: 1 });

  return mongoose.model('Delivery', DeliverySchema);
};
